package com.gcxy.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Api(value = "牧场添加数据传输对象")
public class RanchAddDTO {
    @ApiModelProperty(value = "牧场名称",required=true)
    @NotBlank(message = "牧场名称不能为空")
    private String ranchName;
    @ApiModelProperty(value = "场地规模",required=true)
    @NotNull(message = "场地规模不能为空")
    private Integer fieldScale;
    @ApiModelProperty(value = "养殖规模",required=true)
    @NotNull(message = "养殖规模不能为空")
    private Integer feedScale;
    @ApiModelProperty(value = "省")
    private String province;
    @ApiModelProperty(value = "市")
    private String city;
    @ApiModelProperty(value = "区")
    private String district;
    @ApiModelProperty(value = "县")
    private String country;
    @ApiModelProperty(value = "详细地址",required=true)
    @NotBlank(message = "详细地址不能为空")
    private String addrDetail;
    @ApiModelProperty(value = "经度",required=true)
    private String longitude;
    @ApiModelProperty(value = "纬度",required=true)
    private String latitude;
    @ApiModelProperty(value = "数据字典类型编号",required=true)
    @NotBlank(message = "数据字典类型编号不能为空")
    private String categoryId;
    @ApiModelProperty(value = "创建人",required=true)
    private String creater;
}
